<?php
	/*
	If you would like to edit this file, copy it to your current theme's directory and edit it there.
	Theme My Login will always look in your theme's directory first, before using this default template.
	*/
?>
<div class="login" id="theme-my-login<?php $template->the_instance(); ?>">

    <div class="tml-user-avatar"><?php bp_loggedin_user_avatar( 'type=full' ); ?></div>

    <ul class="tml-user-links">
        
    <?php if ( is_ap() ) { ?>
    
        <li><a href="<?php echo site_url('how-it-works'); ?>">Getting Started</a></li>
        <li><a href="<?php echo site_url('manage-listings'); ?>">Manage My listings</a></li>
        <li><a href="<?php echo site_url('submit-short-sale'); ?>">Submit a listing</a></li>
        <li><a href="<?php echo site_url('short-sale-assistants'); ?>">Browse short sale sssistants</a></li>
        <li><a href="<?php echo bp_loggedin_user_domain(); ?>profile/edit/group/1/">Edit my account</a></li>
        <li><a href="<?php echo bp_loggedin_user_domain(); ?>profile/change-avatar/">Change my profile picture</a></li>
        <li><a href="<?php echo bp_loggedin_user_domain(); ?>settings/">Change my password</a></li>
        <li><a href="https://itunes.apple.com/us/app/the-short-sale-app/id558778984?mt=8" target="_blank">Get the iPhone App on iTunes</a></li>        
        
	<?php } elseif ( is_ssa() ) { ?>
    
        <li><a href="<?php echo site_url('getting-started'); ?>">Getting Started</a></li>
        <li><a href="<?php echo site_url('manage-listings'); ?>">Manage my listings</a></li>
        <li><a href="<?php echo bp_loggedin_user_domain(); ?>profile/edit/group/1/">Edit my profile</a></li>
        <li><a href="<?php echo bp_loggedin_user_domain(); ?>profile/change-avatar/">Change my profile picture</a></li>
        <li><a href="<?php echo bp_loggedin_user_domain(); ?>settings/">Change my password</a></li>
        
    <?php } elseif ( is_god() || is_angel() ) { ?>
    
        <li><a href="<?php echo admin_url(); ?>">Go to the dashboard</a></li>
        <li><a href="<?php echo admin_url(); ?>user-new.php">Add a new S.S.A.</a></li>
        
    <?php } ?>
        
        <li><?php wp_loginout(); ?></li>
        
    </ul>
    	
	<?php do_action_ref_array( 'tml_user_panel', array( $template ) ); ?>
    
</div>